package com.snopy.resource;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import javax.validation.Valid;

/**
 * @author snopy
 * @version 1.0.0
 * @classname FileUploadConfig
 * @description
 * @email 77912204@qq.com
 * @date 2020/10/17 8:58
 */
@Component
@ConfigurationProperties(prefix = "file")
@PropertySource(value = "classpath:file-upload-prod.properties")
public class FileUploadConfig {

    //@Value("#{imageUserFaceLocation}")
    private String imageUserFaceLocation;

    private String imageServerUrl;

    public String getImageUserFaceLocation() {
        return imageUserFaceLocation;
    }

    public void setImageUserFaceLocation(String imageUserFaceLocation) {
        this.imageUserFaceLocation = imageUserFaceLocation;
    }

    public String getImageServerUrl() {
        return imageServerUrl;
    }

    public void setImageServerUrl(String imageServerUrl) {
        this.imageServerUrl = imageServerUrl;
    }
}
